package com.inossem.warehousestorage_inossem.bean.inventory;

import com.inossem.warehousestorage_inossem.bean.common.Bean;

import java.util.List;

/**
 * Created by Administrator on 2017/8/31 0031.
 */

public class InventoryAreaBean extends Bean {


    /**
     * code : 200
     * msg : 公共响应信息
     * data : {"areaList":[{"areaNumber":"A01-01-08","current":"20","total":"1000","positionList":[{"positionNumber":"1","type":"0","status":"0"},{"positionNumber":"2","type":"1","status":"2"}]},{"areaNumber":"A01-01-09","current":"26","total":"200","positionList":[{"positionNumber":"1","type":"0","status":"1"},{"positionNumber":"2","type":"0","status":"2"}]}]}
     */

    private String code;
    private String msg;
    private DataBean data;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        private List<AreaListBean> areaList;

        private String factoryCode;
        private String inventoryAddressCode;
        private String inventoryVoucher;
        private String voucherType;


        public String getVoucherType() {
            return voucherType;
        }

        public void setVoucherType(String voucherType) {
            this.voucherType = voucherType;
        }



        public String getInventoryVoucher() {
            return inventoryVoucher;
        }

        public void setInventoryVoucher(String inventoryVoucher) {
            this.inventoryVoucher = inventoryVoucher;
        }

        public String getFactoryCode() {
            return factoryCode;
        }

        public void setFactoryCode(String factoryCode) {
            this.factoryCode = factoryCode;
        }

        public String getInventoryAddressCode() {
            return inventoryAddressCode;
        }

        public void setInventoryAddressCode(String inventoryAddressCode) {
            this.inventoryAddressCode = inventoryAddressCode;
        }

        public List<AreaListBean> getAreaList() {
            return areaList;
        }

        public void setAreaList(List<AreaListBean> areaList) {
            this.areaList = areaList;
        }

        public static class AreaListBean {
            /**
             * areaNumber : A01-01-08
             * current : 20
             * total : 1000
             * positionList : [{"positionNumber":"1","type":"0","status":"0"},{"positionNumber":"2","type":"1","status":"2"}]
             */

            private String areaNumber;
            private String areaNumberValue;
            private String current;
            private String total;
            private List<PositionListBean> positionList;
            //是否展开
            private boolean expant;

            public boolean isExpant() {
                return expant;
            }

            public void setExpant(boolean expant) {
                this.expant = expant;
            }

            public String getAreaNumberValue() {
                return areaNumberValue;
            }

            public void setAreaNumberValue(String areaNumberValue) {
                this.areaNumberValue = areaNumberValue;
            }

            public String getAreaNumber() {
                return areaNumber;
            }

            public void setAreaNumber(String areaNumber) {
                this.areaNumber = areaNumber;
            }

            public String getCurrent() {
                return current;
            }

            public void setCurrent(String current) {
                this.current = current;
            }

            public String getTotal() {
                return total;
            }

            public void setTotal(String total) {
                this.total = total;
            }

            public List<PositionListBean> getPositionList() {
                return positionList;
            }

            public void setPositionList(List<PositionListBean> positionList) {
                this.positionList = positionList;
            }

            public static class PositionListBean {
                /**
                 * positionNumber : 1
                 * type : 0
                 * status : 0
                 */

                private String positionNumber;
                private String positionNumberValue;
                private String type;
                private String status;
                private String id;

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getPositionNumberValue() {
                    return positionNumberValue;
                }

                public void setPositionNumberValue(String positionNumberValue) {
                    this.positionNumberValue = positionNumberValue;
                }

                public String getPositionNumber() {
                    return positionNumber;
                }

                public void setPositionNumber(String positionNumber) {
                    this.positionNumber = positionNumber;
                }

                public String getType() {
                    return type;
                }

                public void setType(String type) {
                    this.type = type;
                }

                public String getStatus() {
                    return status;
                }

                public void setStatus(String status) {
                    this.status = status;
                }
            }
        }
    }
}
